<?php 
	namespace app\common\controller;

	$db_server="localhost:3306";
	$db_user = "root";
	$db_pwd = "root";
	$db_name = "test";


    function myOpenConnection()
	{
		$con = mysql_connect($db_server,$db_user,$db_pwd);
		if (!$con)
  		{
  			die('Could not connect: ' . mysql_error());
  		}

  		mysql_select_db($db_name);
  		return $con;

	}
 ?>